package com.minglead.springboot.platform.sys.utils;

/**
 * 报文传输实体。
 * @author clz
 * @date 2016-12-28
 */
public class ActionResponse {
	
	private int code = 1;//正常，非1不正常。表示失败

	private String message = "";

	private Object data = null;
	
	public ActionResponse() {}
	
	public ActionResponse(int code, String message) {
		this.code = code;
		this.message = message;
	}
	public ActionResponse(int code, String message,Object data){
		this.code = code;
		this.message = message;
		this.data=data;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}


}
